package com.smart.system.service;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.smart.system.domain.AttendanceRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.smart.system.domain.vo.AttendanceVo;

/**
 * 考勤记录Service接口
 * 
 * @author smart
 * @date 2024-09-18
 */
public interface IAttendanceRecordService extends IService<AttendanceRecord>
{
    /**
     * 查询考勤记录列表
     * 
     * @param attendanceRecord 考勤记录
     * @return 考勤记录集合
     */
    public IPage<AttendanceRecord> selectAttendanceRecordList(AttendanceRecord attendanceRecord, Page<AttendanceRecord> page);

    /**
     * 修改考勤记录
     * 
     * @param userId
     * @return 结果
     */
    public int updateAttendanceRecord(Integer userId,Date date,Integer type);

    /**
     * 考勤情况
     * @param userId
     * @param startTime
     * @param endTime
     * @return
     */
    AttendanceVo attendance(Integer userId, Date startTime, Date endTime);
}
